package com.gxc.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author GongXincheng
 * @since 2019-08-23 00:32
 */
@Configuration
public class QueueConfigBean {

    @Bean
    public Queue queue_hello() {
        return new Queue("hello");
    }

    @Bean
    public Queue queue_demo2() {
        return new Queue("demo2");
    }

    @Bean
    public Queue queue_demo3() {
        return new Queue("demo3");
    }

    @Bean
    public Queue queue_demo4() {
        return new Queue("exception");
    }
}
